package com.liu.qqRobot.q.job;

import com.liu.common.utils.QQClientUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class QJob {

    // cron为0时区的时间，对应北京时间为cron+8
    @Scheduled(cron = "0 0 9 * * ?")
    public void syncGroupUser() {
        log.info("每天17点，签到兔子开始");
        QQClientUtils.sendMsg("签到", 675080584L, 938354542L, true);
        log.info("每天17点，签到兔子结束");
    }

}
